<?php
define('BASE_DIR', dirname(__FILE__));

require BASE_DIR.'/include/define.inc.php';
require BASE_DIR.'/include/setting.inc.php';

require BASE_DIR.'/include/Epic.php';

//Epic_Loader_Autoloader::getInstance();
function __autoload($class) {
	$path = str_replace('_', '/', $class);
	$file = $path . ".php";
	include $file;
	if (!class_exists($class, false) && !interface_exists($class, false)) {
		require 'Epic/Loader/Exception.php';
		throw new Epic_Loader_Exception('The requested class or interface: ' . $class . ' was not found.');
	}
}
	
$front = Epic_Controller_Front::getInstance();
$front->dispatch();
